// All of the Node.js APIs are available in the preload process.
// It has the same sandbox as a Chrome extension.
// 在页面加载之前需要执行的相关代码
window.remote = require('electron').remote;

console.log('===========================')
document.addEventListener('DOMNodeInserted', (event) => {
  window.remote = require('electron').remote;
  
})



window.addEventListener('DOMContentLoaded', () => {
  // 页面内容加载之后需要引入的一些操作
  
})
